<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.htm"/>
</head>
<body>
	<jsp:include page="loggedIn.jsp" />
	<jsp:include page="isAdmin.jsp" />
	<div id="head"><h1>Zeiterfassung</h1></div>
	<jsp:include page="menu.jsp"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<form method="post" action="SaveMitarbeiter.html" class="button">
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td>Nachname</td>
					<td>
						<input type="hidden" name="id" value='<c:out value="${mitarbeiter.id}"/>'/>
						<input class="textbox" type="text" name="mit_name" value='<c:out value="${mitarbeiter.mit_name}"/>' size="50" />
					</td>
				</tr>
				<tr>
					<td>Vorname</td>
					<td>
						<input class="textbox" type="text" name="mit_vorname" value='<c:out value="${mitarbeiter.mit_vorname}"/>' size="50" />
					</td>
				</tr>
				<tr>
					<td>login</td>
					<td>
						<input class="textbox" type="text" name="mit_login" value='<c:out value="${mitarbeiter.mit_login}"/>' size="50"/>
					</td>
				</tr>
				<tr>
					<td>Passwort</td>
					<td>
						<input class="textbox" type="text" name="mit_pw" value='<c:out value="${mitarbeiter.mit_pw}"/>' size="50"/>
					</td>
				</tr>
				<tr>
					<td>Urlaub</td>
					<td>
						<input class="textbox" type="text" name="mit_urlaub" value='<c:out value="${mitarbeiter.mit_urlaub}"/>' size="50"/>
					</td>
				</tr>
				<tr>
					<td>Admin</td>
					<td>
						<select name="mit_isadmin" size="1">
							<option value="false">nein</option>
							<option value="true" <c:if test="${mitarbeiter.mit_isadmin}"><c:out value='selected="selected"'/></c:if> >ja</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>Basis</td>
					<td>
					<select name="b_id">
							<c:forEach items="${basen}" var="basis">
								<option value="${basis.id}" <c:if test="${basis.id == mitarbeiter.basis.id}"><c:out value='selected="selected"'/></c:if>>${basis.basis_bez}</option>									
							</c:forEach>								
					</select></td>
				</tr>
				<tr>
					<td>Sollstunden</td>
					<td>
						<input class="textbox" type="text" name="mit_sollstunden" value='<c:out value="${mitarbeiter.mit_sollstunden}"/>' size="50"/>
					</td>
				</tr>
				
				<tr class="submit">
					<td colspan="2">
							<input type="submit" value=" Änderungen übernehmen "/>
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>  